package com.start.shop.modules.repository.dao;

import com.start.shop.modules.repository.entity.User;

public interface UserDao {

	public User  selectUserByOpenId(String openId);
	
	public User  selectUserById(int id);
	
	public int  insert(User user);
	
	public int getUserDrawTimes(int userId);
	
	public int reduceUserDrawTimes(int userId);
	
	public int increaseUserDrawTimes(int userId);

	/**
	 * 设置用户的代理信息
	 */
	public int updateUserAgent(int userId, int agentId);
}

